package com.sinochem.yunlian.ship.base.mapper;

import com.sinochem.yunlian.ship.base.entity.BsDataDictItem;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author wh
 * @email ${email}
 * @date 2017-12-11 10:25:23
 */
public interface BsDataDictItemMapper extends Mapper<BsDataDictItem> {

    List<BsDataDictItem> findByDictCode(@Param("dictCode") String dictCode);
    List<BsDataDictItem> findByDictCodeForView(@Param("dictCode") String dictCode);
    List<BsDataDictItem> findByDictCodeForOM(@Param("dictCode") String dictCode);

	String getItemName(Long id);

	String getItemNameByItemValueByMap(HashMap<Object, Object> hashMap);

    List<BsDataDictItem> findByDictCodeAndItemGroup(@Param("dictCode") String dictCode,@Param("itemGroup") Integer itemGroup);
}
